class AdminController < ApplicationController
  def index
    @quantities = Quantity.find_by_sql(["
    SELECT  teachers.tname, quantities.type, numbers
    FROM    teachers, quantities
    WHERE   quantities.tea_id = teachers.id
        "])

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @quantities }
    end
  end
end
